#ifndef TITLEBAR_H
#define TITLEBAR_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QTimer>

class TitleBar : public QWidget
{
    Q_OBJECT

public:
    TitleBar(QWidget *parent = NULL);
    ~TitleBar();

    //设置标题栏图标
    void SetTitleIcon(QString ResPath, QSize IconSize = QSize(16 , 16));
    //设置标题栏长度
    void SetTitleWidth(int Width);

signals:
    void sButtonCloseClicked();

private slots:
    void OnBoxButtonCloseClicked();

private:
    QLabel* AtIcon;
    QLabel* AtTitleContent;
    QPushButton* AtButtonClose;
};

#endif
